<style type="text/css">
    .bjui-pageHeader{
        font-size: 18px;
        font-weight: bold;
    }
    .form{
        padding: 15px;
    }
    .form dl {
        overflow: hidden;
        padding-top: 15px;
    }

    .form dt {
        color: #666;
        float: left;
        font-size: 14px;
        padding: 3px 0 0;
        width: 11%;
    }
    .form dd {
        float: left;
        line-height: 22px;
    }
    dd.desc {
        height: 30px;
        padding: 0 10px;
        width: 150px;
    }
    .litpic_btn{
        float: right;
    }
</style>

<!--  -->

<script type="text/javascript" src="__PUBLIC__/js/jquery.form.min.js"></script>
    
    <script type="text/javascript" charset="utf-8">
        KindEditor.create('#j_form_content', {
            uploadJson : '{:U("Attachment/uploads")}',
            fileManagerJson : '{:U("Attachment/filemanager")}',
            allowFileManager : true,
            extraFileUploadParams: {
                session_id : '<?php echo session_id() ?>'
            },
            height : 400,
            afterBlur: function () {
              this.sync();
            }
        });

    </script>  





<!-- -->
<div class="bjui-pageHeader">
    <div class="glyphicon glyphicon-th-large">修改单页</div>
    <if condition="$subcate">
            <fieldset>
                <legend>子栏目</legend>

                <foreach name='subcate' item='v'>
                    <a href="{:U(ucfirst($v['tablename']) . '/index', array('pid' =>
                        $v['id']))}" data-toggle="navtab" data-id="sub-article-index" data-title="{$v.name}">{$v.name}
                    </a>&nbsp;&nbsp;&nbsp;
                </foreach>
            </fieldset>
        </if>
</div>
<div class="bjui-pageContent">
        <div class="form">
        <form method='post'  data-toggle="validate" action="{:U('Page/indexHandle')}">
        <dl><dt>摘要：</dt>
            <dd>
                <textarea name="description" class="tarea_default" cols="60" rows="5">{$vo.description}</textarea>
            </dd>
        </dl>
        <dl><dt>内容：</dt><dd>
                <textarea name="content" id="j_form_content" class="j-content" style="width: 700px;" data-toggle="kindeditor" data-minheight="400"  data-rule="required" data-tip="请填写内容" data-ok="OK">{$vo.content}</textarea>
            </dd>
        </dl>
        <dl>
            
        </dl>   
            <input type="hidden" name="id" value="{$pid}" />
            <input type="hidden" name="pid" value="{$pid}" />
       </form>
    </div>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
            <li>
        <button data-icon="save" class="btn btn-default" type="submit">保存</button>
    </li>
    </ul>
</div>